/* ================= FOOTER ================= */
.footer {
    background: #08325e;
    color: #B9C6E4;
    font-size: 14.5px;
    position: relative;
    margin-top: auto;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #F07E1A, #1FA2D6);
}

/* ---- Top area with brand + columns ---- */
.foot-top {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 60px var(--gutter) 44px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: clamp(24px, 3vw, 48px);
}

.foot-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    display: inline-block;
}
.foot-brand p {
    max-width: 40ch;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.65;
    color: #A8B6D6;
}
.foot-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.foot-social a {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 15px;
    transition: background .25s, color .25s, transform .25s;
}
.foot-social a:hover {
    background: var(--accent);
    color: var(--brand);
    transform: translateY(-3px);
}

/* ---- Columns ---- */
.foot-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.foot-col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.foot-col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.foot-col ul a {
    font-size: 14px;
    color: #A8B6D6;
    font-weight: 500;
    transition: color .2s, padding .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.foot-col ul a i {
    font-size: 10px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s;
}
.foot-col ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.foot-col ul a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Contact column ---- */
.foot-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.foot-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: #A8B6D6;
    line-height: 1.5;
}
.foot-contact li i {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(244, 166, 42, .12);
    color: var(--accent);
    font-size: 13px;
    margin-top: 2px;
}
.foot-contact li a {
    color: #A8B6D6;
    transition: color .2s;
}
.foot-contact li a:hover { color: var(--accent); }
.foot-contact li strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ---- Newsletter strip ---- */
.foot-news {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter) 40px;
}
.foot-news-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 32px;
    background: linear-gradient(135deg, rgba(244, 166, 42, .12), rgba(31, 162, 214, .08));
    border: 1px solid rgba(244, 166, 42, .25);
    border-radius: 20px;
    flex-wrap: wrap;
}
.foot-news-text h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.foot-news-text p {
    color: #A8B6D6;
    font-size: 13.5px;
}
.foot-news-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 460px;
    min-width: 260px;
}
.foot-news-form input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s;
}
.foot-news-form input::placeholder { color: #8A98BC; }
.foot-news-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, .1);
}
.foot-news-form button {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #F07E1A);
    color: var(--brand);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.foot-news-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(240, 126, 26, .35);
}

/* ---- Cities strip (SEO) ---- */
.foot-cities {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 22px var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    line-height: 2;
    color: #8A98BC;
}
.foot-cities strong {
    color: #fff;
    margin-right: 10px;
    font-weight: 700;
}
.foot-cities a {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.foot-cities a:hover {
    color: var(--accent);
    background: rgba(244, 166, 42, .08);
}
.foot-cities a::after {
    content: "·";
    margin-left: 8px;
    margin-right: -6px;
    color: #4A5878;
}
.foot-cities a:last-child::after { display: none; }

/* ---- Payment methods strip ---- */
.foot-pay {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.foot-pay-label {
    color: #8A98BC;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.foot-pay-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.foot-pay-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 56px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: background .2s, border-color .2s;
}
.foot-pay-icons span:hover {
    background: rgba(244, 166, 42, .12);
    border-color: rgba(244, 166, 42, .35);
}
.foot-pay-icons span i {
    margin-right: 6px;
    color: var(--accent);
    font-size: 13px;
}

/* ---- Bottom bar ---- */
.foot-bottom {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 22px var(--gutter);
    font-size: 13px;
}
.foot-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.foot-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #8A98BC;
}
.foot-left .dev-by a {
    color: var(--accent);
    font-weight: 700;
}
.foot-left .dev-by a:hover { text-decoration: underline; }
.foot-bottom nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.foot-bottom nav a {
    color: #A8B6D6;
    font-weight: 500;
    transition: color .2s;
    position: relative;
}
.foot-bottom nav a:hover { color: var(--accent); }

/* ---- Back to top (only on auth pages) ---- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--brand);
    color: var(--accent);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(8, 50, 94, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--brand); }

/* ================= RESPONSIVE FOOTER ================= */
@media (max-width: 1240px) {
    .foot-top { grid-template-columns: 1fr 1fr 1fr; }
    .foot-brand { grid-column: span 3; }
}
@media (max-width: 900px) {
    .foot-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .foot-brand { grid-column: span 2; }
    .foot-news-inner { padding: 22px 20px; }
}
@media (max-width: 600px) {
    .foot-top {
        grid-template-columns: 1fr;
        padding: 40px var(--gutter) 30px;
        gap: 30px;
    }
    .foot-brand { grid-column: auto; }
    .foot-news-form { max-width: 100%; }
    .foot-news-form button { padding: 0 18px; }
    .foot-news-form button span { display: none; }
    .foot-pay { flex-direction: column; align-items: flex-start; }
    .foot-bottom .container { flex-direction: column; align-items: flex-start; }
    .foot-bottom nav { gap: 14px; }
    .foot-cities { font-size: 12.5px; }
    .to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}
